package biz.ezcom.spring.ioc.test;


import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import biz.ezcom.spring.ioc.pojo.User;

public class Client {
	private static ApplicationContext context; 
	@BeforeClass
	public static void setUpBeforeClass() {
		context = new ClassPathXmlApplicationContext("applicationContext-bean.xml");
	}
	@Test
	public void testInjectionBean1(){
		User user = (User) context.getBean("user");
		System.out.println(user.getBirthDay());
	}
}
